Skip to content

Expire artifacts automatically to protect workspace quota - #5

Merged
none23 merged 1 commit into
mainfrom
t3code/add-artifact-expiration-timer
Aug 1, 2026
Merged

Expire artifacts automatically to protect workspace quota#5
none23 merged 1 commit into
mainfrom
t3code/add-artifact-expiration-timer

Conversation

@none23

@none23 none23 commented Aug 1, 2026

Copy link
Copy Markdown
Owner

Summary

Expire artifacts after three days by default so stale HTML is reclaimed before it blocks new publishes. Every republish resets the timer unless the owner explicitly chooses another duration or disables expiration.

Changes

  • Store and enforce one server-owned expiration timestamp across list, view, invitation, deletion, and capacity paths.
  • Reclaim expired artifact chunks, grants, and metadata before publish quota checks and when owners open the library.
  • Add browser controls for one-hour through 30-day lifetimes and never-expiring artifacts.
  • Add --expires-in to the publisher and skill, plus expiresInSeconds / expiresAt to the API contract.
  • Preserve pre-existing artifacts as non-expiring until their next update and document Lakebed's lazy physical cleanup behavior.

Demo

Artifact expiration solution brief (private to configured owners and workspace viewers)

@none23
none23 merged commit f8215e4 into main Aug 1, 2026
1 check passed
@none23
none23 deleted the t3code/add-artifact-expiration-timer branch August 1, 2026 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant